#ifndef CONTENTINFO_H
#define CONTENTINFO_H

#include <QFile>
#include <QList>

struct CatalogueItem{
    QString content;
    int startIndex;
    int lineCount;
};

class ContentInfo : public QObject
{
    Q_OBJECT
public:
    explicit ContentInfo(QObject *parent = nullptr);
    explicit ContentInfo(const QString& file, QObject *parent = nullptr);

    QStringList readLines(int startIndex, int lineNums);
//    QStringList readCatalogue();
    QList<CatalogueItem> readCatalogue();

signals:

private:
    QString _filePath;
};

#endif // CONTENTINFO_H
